package com.project.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "oauth")
public class PropertiesConfig {

    @Value("${oauth.checkTokenPoint}")
    private String checkTokenPoint;
    @Value("${oauth.clientID}")
    private String clientID;
    @Value("${oauth.secret}")
    private String secret;
    @Value("${oauth.resourceID}")
    private String resourceID;

    @Value("${oauth.ignoreUrl}")
    private List<String> ignoreUlr;


    public List<String> getIgnoreUlr() {
        return ignoreUlr;
    }

    public void setIgnoreUlr(List<String> ignoreUlr) {
        this.ignoreUlr = ignoreUlr;
    }

    public String getResourceID() {
        return resourceID;
    }

    public void setResourceID(String resourceID) {
        this.resourceID = resourceID;
    }

    public String getCheckTokenPoint() {
        return checkTokenPoint;
    }

    public void setCheckTokenPoint(String checkTokenPoint) {
        this.checkTokenPoint = checkTokenPoint;
    }

    public String getClientID() {
        return clientID;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public void setClientID(String clientID) {
        this.clientID = clientID;
    }
}
